package com.java.day07.weapons;

import com.java.day04.arr.ArrUtils;

public class Demo {
    public static void main(String[] args) {
        //随机掉落
       Weapons[] weapons = WeaponsUtil.randomWeapons(5);

        for (int i = 0; i < weapons.length; i++) {
            System.out.println(weapons[i]);
        }

        System.out.println("===============");

        Dagger[] daggers = new Dagger[weapons.length];
        LongSword[] longSwords = new LongSword[weapons.length];

        //分类
        WeaponsUtil.weaponsType(weapons,daggers,longSwords);

        for (LongSword longSword : longSwords) {
            System.out.println(longSword);
        }

        System.out.println("===============");

        for (Dagger dagger : daggers) {
            System.out.println(dagger);
        }


    }


}
